package com.gency.subscribe.model.system;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
/**
 * <p>
 * 企业行业分类
 * </p>
 *
 * @author 马行空
 * @since 2018-06-12
 */
@TableName("sys_unit_category")
public class UnitCategory extends Model<UnitCategory> {

    private static final long serialVersionUID = 1L;

    @TableId("PK_ID")
	private Long pkId;
    /**
     * 名称
     */
	@TableField("NAME")
	private String name;
    /**
     * 编码
     */
	@TableField("CODE")
	private String code;
    /**
     * 是否门类
     */
	@TableField("PARENT")
	private Integer parent;
    /**
     * 是否小类
     */
	@TableField("LEAF")
	private Integer leaf;
    /**
     * 所属大类
     */
	@TableField("PARENT_CODE")
	private String parentCode;


	public Long getPkId() {
		return pkId;
	}

	public void setPkId(Long pkId) {
		this.pkId = pkId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Integer getParent() {
		return parent;
	}

	public void setParent(Integer parent) {
		this.parent = parent;
	}

	public Integer getLeaf() {
		return leaf;
	}

	public void setLeaf(Integer leaf) {
		this.leaf = leaf;
	}

	public String getParentCode() {
		return parentCode;
	}

	public void setParentCode(String parentCode) {
		this.parentCode = parentCode;
	}

	@Override
	protected Serializable pkVal() {
		return this.pkId;
	}

	@Override
	public String toString() {
		return "UnitCategory{" +
			"pkId=" + pkId +
			", name=" + name +
			", code=" + code +
			", parent=" + parent +
			", leaf=" + leaf +
			", parentCode=" + parentCode +
			"}";
	}
}
